package models.outstock

import java.sql.Timestamp
import java.time.LocalDateTime

/**
 *  销售发货汇总单
 *
 * @param id
 * @param ossFDate  单据日期/发货日期
 * @param ossFGYBillNo 单据号
 * @param ossFShopNumber 店铺代码
 * @param ossFStockNumber 仓库代码
 * @param ossSumInfo 汇总信息
 * @param ossKDResultID 金蝶单据号
 * @param ossResult 同步结果
 * @param ossFEntity
 * @param ossStatus  同步状态
 */
case class OutStockSum(
                        id:Option[Int]=None,
                        ossFDate:Timestamp = Timestamp.valueOf(LocalDateTime.now()),
                        ossFGYBillNo:String="",
                        ossFShopNumber:String="",
                        ossFStockNumber:String="",
                        ossSumInfo:Option[String] = None,
                        ossKDResultID:Option[String] = None,
                        ossResult:Option[String] = None,
                        ossFEntity:Boolean  = false,
                        ossStatus:Int  = 0
                      )

/**
 * 销售发货汇总单明细
 *
 * @param id
 * @param ossOutStockID  销售发货汇总单 id
 * @param ossFAllAmount  实际金额
 * @param ossFAmount 等同实际金额
 * @param ossFDiscount   让利金额
 * @param ossFFeeAmount 其他费用
 * @param ossFIsFree     是否赠品
 * @param ossFMaterialNumber  商品编码
 * @param ossHashNo
 * @param ossFPrice   单价
 * @param ossFQty 数量
 * @param ossFServiceAmount 物流费用
 */
case class OutStockSumFEntity(
                               id:Option[Int] =None,
                               ossOutStockID:Option[Int],
                               ossFAllAmount:Double,
                               ossFAmount:Double,
                               ossFDiscount:Double,
                               ossFFeeAmount:Double,
                               ossFIsFree:Boolean = false,
                               ossFMaterialNumber:String,
                               //ossHashNo:Option[String] = None,
                               ossFPrice:Double,
                               ossFQty:Int,
                               ossFServiceAmount:Double
                             )
object OutStockSum {
  //implicit val osrOutStockReciveFormat = Json.format[OutStockSum]
}
